import { program } from 'commander'
import { copyPackages } from './bin/copy-packages.js'
import { makeMarkdown } from './bin/mkmd.js'
import { createWebapis } from './bin/webapis.js'
import { copyUtilsDist } from './bin/copy-utils.js'
//复制代码
program
    .command('copy <gitUrl>')
    .description('Download code from <gitUrl>')
    .action(copyPackages);
//按目录生成md
program
    .command('mkmd <dir>')
    .description('生成markdown')
    .action(makeMarkdown);
//生成webapis
program
    .command('webapis')
    .description('生成webapis')
    .action(createWebapis);

//复制代码
program
    .command('copy-dist-utils')
    .description('复制utils/dist')
    .action(copyUtilsDist);
program.parse(process.argv);